﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NetSysData;

namespace BladeTecWebApplication.Admin
{
    public partial class AddCategory : System.Web.UI.Page
    {
        NetSysData.NetSysData data = new NetSysData.NetSysData();
        QUESTION_CATEGORY cat = new QUESTION_CATEGORY();

        protected void Page_Load(object sender, EventArgs e)
        {


            hflblCatID.Value = (data.GetQuestionCagetories().Length + 1).ToString();
        }


        protected void btnAddCategory_Click(object sender, EventArgs e)
        {

            cat.CATEGORY_NAME = txtCategoryName.Text;
            data.addCategory(cat);

            pnlQuestionLevelForm.Visible = false;
            pnlConfirmationForm.Visible = true;
        }
    }
}